package com.common.VO;

import lombok.*;

/**
 * @author 大静
 * @version 1.0
 * @date 2021-05-07 9:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysResult {
  private Integer status;

  private String msg;

  private Object data;

  public static SysResult build(Integer status, String msg, Object data) {
    return new SysResult(status, msg, data);
  }

  public static SysResult ok() {
    return new SysResult(200, "ok", null);
  }

  public static SysResult ok(Object data) {
    return new SysResult(200, "ok", data);
  }
}
